/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * VentanaInicio.java
 *
 * Created on 07-dic-2011, 22:43:01
 */
package Vistas;

import java.awt.event.ActionListener;
import javax.swing.GroupLayout;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.LayoutStyle;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
/**
 *
 * @author Junior
 */
public class VentanaInicio extends javax.swing.JFrame {

    /** Creates new form VentanaInicio */
    public VentanaInicio() {
        initComponents();
    }
    
    public void mostrarMensaje(String msj){
        JOptionPane.showMessageDialog(this, msj);
        }
        

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jButtonUmpire = new javax.swing.JButton();
        jButtonEquipos = new javax.swing.JButton();
        jButtonGenerar = new javax.swing.JButton();

        GroupLayout layout = new GroupLayout((JComponent)getContentPane());
        getContentPane().setLayout(layout);
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jPanel1.setLayout(null);
        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        {
        	jLabel1 = new JLabel();
        	jLabel1.setText("jLabel1");
        	jLabel1.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Imagenes/logo_lvbp_nuevo.png")));
        	jLabel1.setBounds(57, 8, 319, 334);
        }
        layout.setVerticalGroup(layout.createSequentialGroup()
        	.addContainerGap(29, 29)
        	.addGroup(layout.createParallelGroup()
        	    .addGroup(layout.createSequentialGroup()
        	        .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, 396, GroupLayout.PREFERRED_SIZE)
        	        .addGap(0, 0, Short.MAX_VALUE))
        	    .addGroup(GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
        	        .addGap(27)
        	        .addComponent(jLabel1, GroupLayout.PREFERRED_SIZE, 334, GroupLayout.PREFERRED_SIZE)
        	        .addGap(0, 35, Short.MAX_VALUE)))
        	.addContainerGap(30, 30));
        layout.setHorizontalGroup(layout.createSequentialGroup()
        	.addContainerGap(36, Short.MAX_VALUE)
        	.addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, 254, GroupLayout.PREFERRED_SIZE)
        	.addGap(0, 37, GroupLayout.PREFERRED_SIZE)
        	.addComponent(jLabel1, GroupLayout.PREFERRED_SIZE, 319, GroupLayout.PREFERRED_SIZE)
        	.addContainerGap(18, 18));

        jButtonUmpire.setText("Arbitros");
       

        jButtonEquipos.setText("Equipos");
        {
        	jButton1 = new JButton();
        	jButton1.setText("Generar");
        }
        {
        	jButtonPosiciones = new JButton();
        	jPanel1.add(jButtonPosiciones);
        	jButtonPosiciones.setText("Tabla de Posiciones");
        	jButtonPosiciones.setBounds(45, 310, 164, 42);
        }
        {
        	jButtonPartidos = new JButton();
        	jPanel1.add(jButtonPartidos);
        	jPanel1.add(jButtonEquipos);
        	jPanel1.add(jButtonUmpire);
        	jPanel1.add(jButton1);
        	jButton1.setBounds(45, 168, 164, 46);
        	jButtonUmpire.setBounds(45, 24, 164, 46);
        	jButtonEquipos.setBounds(45, 97, 164, 46);
        	jButtonPartidos.setText("Partidos");
        	jButtonPartidos.setBounds(45, 239, 164, 46);
        }

        pack();
        this.setSize(674, 485);
    }// </editor-fold>//GEN-END:initComponents

private void jButtonUmpireActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonUmpireActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jButtonUmpireActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(VentanaInicio.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(VentanaInicio.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(VentanaInicio.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(VentanaInicio.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new VentanaInicio().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonEquipos;
    private javax.swing.JButton jButtonUmpire;
    private javax.swing.JButton jButtonGenerar;
    private javax.swing.JPanel jPanel1;
    private JButton jButton1;
    private JLabel jLabel1;
    private JButton jButtonPartidos;
    private JButton jButtonPosiciones;
    // End of variables declaration//GEN-END:variables

  
    public void agregarListener(ActionListener accion){
	jButtonUmpire.addActionListener(accion);
        jButtonEquipos.addActionListener(accion);
        jButtonGenerar.addActionListener(accion);
        jButtonPartidos.addActionListener(accion);
        jButtonPosiciones.addActionListener(accion);
        jButton1.addActionListener(accion);

        
	}
}
